import request from '@/config/axios'



// 查询Banner管理列表
export const getOrderStatisticsByMember = async (params) => {
  return await request.get({ url: `/statistics/trade/orderAnalysis`, params })
}

export const getOrderStatisticsByMemberTotal = async (params) => {
  return await request.get({ url: `/statistics/trade/orderAnalysisTotal`, params })
}


// 查询Banner管理列表
export const getOrderStatisticsByDept = async (params) => {
  return await request.get({ url: `/statistics/trade/orderAnalysisDept`, params })
}

export const getOrderStatisticsByDeptTotal = async (params) => {
  return await request.get({ url: `/statistics/trade/orderAnalysisDeptTotal`, params })
}


// 查询Banner管理列表
export const getOrderStatisticsByProduct = async (params) => {
  return await request.get({ url: `/statistics/trade/orderAnalysisProduct`, params })
}


export const exportByMember = async (params) => {
  return  await request.download({ url: `/statistics/trade/export-user`, params })
}

export const exportByDepartment= async (params) => {
  return  await request.download({ url: `/statistics/trade/export-dept`, params })
}

export const exportByProduct= async (params) => {
  return  await request.download({ url: `/statistics/trade/export-product`, params })
}

